package com.gsy.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Date 2022/3/6 2:10:25
 * @Author gsy
 */
@Data
public class GetLeaveVO {
    @ApiModelProperty(name = "请假表id -创建时间+学号", value = "请假表id -创建时间+学号", dataType = "Integer", example = "请假表id -创建时间+学号")
    @TableId(value = "l_id", type = IdType.AUTO)
    private Integer lId;

    @ApiModelProperty(name = "请假人的id", value = "请假人的id", dataType = "Integer", example = "请假人的id")
    private Integer uId;

    @ApiModelProperty(name = "请假理由", value = "请假理由", dataType = "String", example = "请假理由")
    private String reason;

    @ApiModelProperty(name = "请假类型", value = "请假类型", dataType = "String", example = "请假类型")
    private String leavetype;

    @ApiModelProperty(name = "请假开始时间", value = "请假开始时间", dataType = "Date", example = "请假开始时间")
    private Date starttime;

    @ApiModelProperty(name = "请假结束时间", value = "请假结束时间", dataType = "Date", example = "请假结束时间")
    private Date endtime;

    @ApiModelProperty(name = "审批状态", value = "审批状态", dataType = "Integer", example = "审批状态")
    private Integer state;

    @ApiModelProperty(name = "创建时间", value = "创建时间", dataType = "Date", example = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @ApiModelProperty(name = "所在的班级", value = "所在的班级", dataType = "String", example = "所在的班级")
    private String classes;

    private String username;
    private String name;

}
